<?php
/*
本系统由苏酷伊基于SiteHub项目二次开发
作者博客： https://www.sukuy.com/
后续更新地址： https://www.sukuy.com/navigation
作者QQ：3288637559
QQ交流群：884250547
任何第三方非官网在发布本系统时，不得删除该注释、版权信息、作者信息及官网等内容
*/
$count_category      = $DB->count('category');
$count_site          = $DB->count('site');
$count_apply         = $DB->count('apply', array('reject' => 0));
$count_apply_reject  = $DB->count('apply', array('reject' => 1));
$count_article       = $DB->count('article');
$count_article_category   = $DB->count('article_category');
$count_notice      = $DB->count('notice');
$count_link        = $DB->count('link');
$top_hits_day      = $DB->find('site','id, name', array('date' => date("Y-m-d", time())), '`hits_day` desc');
$top_hits_month    = $DB->find('site','id, name', array('datem' => date("Y-m", time())), '`hits_month` desc');
$top_hits_total    = $DB->find('site','id, name', null, '`hits_total` desc');
$top_like          = $DB->find('site','id, name', null, '`like` desc');
?>
<p>已开设分类：<b><?php echo $count_category ?></b> 个</p>
<p>已收录站点：<b><?php echo $count_site ?></b> 个</p>
<p>最高日览站：<a href="<?php echo "site/{$top_hits_day['id']}.html"; ?>" target="_blank"><?php echo $top_hits_day['name']; ?></a></p>
<p>最高月览站：<a href="<?php echo "site/{$top_hits_month['id']}.html"; ?>" target="_blank"><?php echo $top_hits_month['name']; ?></a></p>
<p>最高总览站：<a href="<?php echo "site/{$top_hits_total['id']}.html"; ?>" target="_blank"><?php echo $top_hits_total['name']; ?></a></p>
<p>最高点赞站：<a href="<?php echo "site/{$top_like['id']}.html"; ?>" target="_blank"><?php echo $top_like['name']; ?></a></p>
<p>正申请站点：<b><?php echo $count_apply ?></b> 个</p>
<p>已拒绝站点：<b><?php echo $count_apply_reject ?></b> 个</p>
<p>文章的分类：<b><?php echo $count_article_category ?></b> 个</p>
<p>已发布文章：<b><?php echo $count_article ?></b> 篇</p>
<p>已交换友链：<b><?php echo $count_link; ?></b> 个</p>